﻿@model IEnumerable<CloudFranceTriple.Models.AccountSet>

@{
    ViewBag.Title = CloudFranceTriple.WebRole.Properties.Resources.TeamAccountIndexTitle;
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="content-padding">
    <h1>@CloudFranceTriple.WebRole.Properties.Resources.TeamAccountIndexTitle</h1>
    <section>
        <p>
            @Html.ActionLink(CloudFranceTriple.WebRole.Properties.Resources.ButtonCreate, "Create")
        </p>
        <table>
            <tr>
                <th>
                    @CloudFranceTriple.WebRole.Properties.Resources.TeamAccountLabel
                </th>
                <th></th>
            </tr>

            @foreach (var item in Model)
            {
                <tr>
                    <td>
                        @Html.DisplayFor(modelItem => item.Label)
                    </td>
                    <td>
                        @Html.ActionLink(CloudFranceTriple.WebRole.Properties.Resources.ButtonEdit, "Edit", new { id = item.Id }) |
            @Html.ActionLink(CloudFranceTriple.WebRole.Properties.Resources.ButtonDelete, "Delete", new { id = item.Id })
                    </td>
                </tr>
            }

        </table>
        <p>
            @Html.ActionLink(@CloudFranceTriple.WebRole.Properties.Resources.TeamAccountBackToAccountingEntry, "Index", "AccountingEntry", new { area = "Member" }, null)
        </p>
        <br />
    </section>
</div>
